<?php
	$mysql = new mysqli("localhost","root","","yihe");
	if($mysql -> connect_error){
		exit("数据库链接失败,错误信息是:{$mysql -> connect_error}");
	}
	$user_phone = $_POST["user_phone"];
	$mysql -> set_charset("utf8");
	$select_sql = "select * from user_info where user_phone = '{$user_phone}'";
	$result = $mysql -> query($select_sql);
	if($result -> num_rows){
		echo "1";
	}else{
		echo "0";
	}
?>